package com;

public class Demo01 {
    public static void main(String[] args) {
        Zkm z = new Zkm();
        z.setName("张坤萌");
        z.setAge(12);
        z.setColor("黑色");
        System.out.println("名称: " + z.getName() + "，年龄: " + z.getAge() + "，颜色: " + z.getColor());
    }
}
class Students {
    private String name;
    private Integer age;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }
}
class Zkm extends Students {
    private String color;

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }
}